﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchProcess.aspx.cs" Inherits="ImageReview.BatchProcess" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="Stylesheet" href="Master.css" />
    <link type="text/css" rel="Stylesheet" href="PreviewStyles.css" />
</head>
<body>
    <form id="form1" runat="server">
            <table width="100%" class="headingTable" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 50%; height: 58px; text-align: left; vertical-align: top; background-image: url('logo.gif');
                    background-repeat: no-repeat; background-position: left bottom;">
                    &nbsp;</td>
                <td style="width: 50%; text-align: right; vertical-align: middle;" class="pageheading">
                    Image Submission</td>
            </tr>
            <tr>
                <td colspan="2" style="width: 100%; height: 20px" class="separator" align="right">
        <a href="Search.aspx" class="customLink1">Search</a> | <a href="Submit.aspx" class="customLink1">Select & Process</a> | <a href="Default.aspx" class="customLink1">Match Good ID </a>| <a href="Process.aspx" class="customLink1">Review Images</a>| <a href="Accept.aspx" class="customLink1">Waiting</a> | <span class="linklabel">Batch Process</span>   &nbsp;
                </td>
            </tr>
        </table>
    <div style="margin: 15px;"><b>Total Images to be Processed: </b>
        <asp:Label runat="server" ID="lblMessage"></asp:Label>
        <span style="padding-left: 25px;"><asp:CheckBox runat="server" ID="chkEnableArchive" Checked="True"/>Archive all images</span>
        <span style="padding-left: 25px;"><asp:CheckBox runat="server" ID="chkEnableFTP" Checked="False"/>FTP all images to Sharepoint Internet</span>
    </div>
    <div style="margin: 15px;">
    <asp:Button runat="server" ID="btnBatchProcess" Text="Batch Process Images" OnClientClick="btnBatchProcess_ClientClick()"
        onclick="btnBatchProcess_Click" Width="182px"/>
        </div>
     <fieldset  runat="server" id="fsOutput">
        <legend>OUTPUT</legend>
        <div style="margin: 15px;">
            <table>
                <tr><td style="text-align: right; padding-right: 20px; line-height: 24px">Total Process Time:</td><td><asp:Label runat="server" ID="lblTimeSpent"></asp:Label></td></tr>
                <tr><td style="text-align: right; padding-right: 20px; line-height: 24px">FTP Time:</td><td><asp:Label runat="server" ID="lblFTPTime"></asp:Label></td></tr>
            </table>
        </div>
    </fieldset>       
    <div style="margin:15px;">
        <asp:Label runat="server" ID="lblStatus"></asp:Label>
    </div>
        <asp:Button ID="btnUpdateDatabase" runat="server" 
                Text="Update Database from Processed Images" 
                onclick="btnUpdateDatabase_Click" />
    </form>
    
    <script type="text/javascript" language="javascript">
        function btnBatchProcess_ClientClick() {
            document.getElementById('<%= lblStatus.ClientID %>').innerText = "Processing...";
        }

    </script>
</body>
</html>
